home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12738 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.NetVision.net.il!news
  2. From: Eitan Horwitz <tnt@netvision.net.il>
  3. Newsgroups: comp.lang.c++
  4. Subject: Help: DLL functions that create class objects
  5. Date: 21 Mar 1996 11:15:39 GMT
  6. Organization: NetVision LTD.
  7. Message-ID: <4irdor$fot@news.NetVision.net.il>
  8. NNTP-Posting-Host: ts000p5.pop2a.netvision.net.il
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1PE (Windows; I; 16bit)
  13.  
  14. I wrote a DLL that has an exported function which calls two functions, 
  15. each of which creates a new object and returns the pointer to the object. 
  16.  The first function returns the pointer with no problem, the second bombs 
  17. with a fallout message of GPF 0000000D.
  18.  
  19. I used MS Codeview to trace thru the execution of the second "new" 
  20. statement.  It blows up in the _searchseg routine of "new".  The tracing 
  21. was probably overkill, since that GPF is for "out bounds" access, if I'm 
  22. not mistaken.
  23.  
  24. I assume it has something to do with the process of initializing the 
  25. object. Anybody have any ideas what the problem is?
  26.  
  27. Thanks,
  28.   Eitan
  29.  
  30. -------------------------------------------------
  31. Eitan (Tony) Horwitz
  32. Desert Sun Operations
  33. Hashminit 14, Maale Adumim
  34. Israel 98340
  35. Tel: (wk)972.2.590-0033
  36. Fax: (wk)972.2.590-0066
  37. Net: tnt@netvision.net.il
  38. -------------------------------------------------
  39.  
  40.  
  41.  
  42.